﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chinaer.IDao
{
    /// <summary>
    /// 日志记录表IDAO
    /// </summary>
    public interface ILogDAO : IBaseDAO<Model.Entities.Model_Log>
    {
        /// <summary>
        /// 根据某一个时间段获取日志列表信息
        /// </summary>
        /// <param name="beginTime"></param>
        /// <param name="endTime"></param>
        /// <returns></returns>
        List<Model.Entities.Model_Log> GetLogsByTimeSpan(DateTime beginTime, DateTime endTime);
        /// <summary>
        /// 根据级别获取日志列表信息
        /// </summary>
        /// <param name="level"></param>
        /// <returns></returns>
        List<Model.Entities.Model_Log> GetLogsByLevel(string level);

    }
}
